from flask import Flask
from flask_cors import *
from api import (role, user, author)

app = Flask(__name__)
CORS(app, supports_credentials=True)

app.register_blueprint(role.bp)
app.register_blueprint(user.bp)
app.register_blueprint(author.bp)


@app.route("/")
def hello():
    return "Hello World!"


if __name__ == '__main__':
    app.run(debug=True, port=4000)
